.class public Lcom/example/m6wmr/LifelistActivity;
.super Landroid/app/Activity;
.source "LifelistActivity.java"

# interfaces
.implements Lcom/wmr/Lstview/XListView$IXListViewListener;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "HandlerLeak",
        "ShowToast"
    }
.end annotation


# static fields
.field public static OrderlistAct:Lcom/example/m6wmr/LifelistActivity;


# instance fields
.field private ListViewOrder:Lcom/wmr/Lstview/XListView;

.field public h:Landroid/os/Handler;

.field private is_loading:Z

.field private m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mcontext:Landroid/content/Context;

.field private orderAdapter:Ldata/LifeAdapter;

.field private orderls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/NoticBean;",
            ">;"
        }
    .end annotation
.end field

.field private page:I

.field private temporderls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/NoticBean;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 45
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 46
    iput-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->m:Lmyapp/MyApp;

    .line 49
    iput-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->h:Landroid/os/Handler;

    .line 51
    const/4 v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/LifelistActivity;->page:I

    .line 57
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/m6wmr/LifelistActivity;->is_loading:Z

    .line 45
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/LifelistActivity;)V
    .locals 0

    .prologue
    .line 185
    invoke-direct {p0}, Lcom/example/m6wmr/LifelistActivity;->onLoad()V

    return-void
.end method

.method static synthetic access$1(Lcom/example/m6wmr/LifelistActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/LifelistActivity;)I
    .locals 1

    .prologue
    .line 51
    iget v0, p0, Lcom/example/m6wmr/LifelistActivity;->page:I

    return v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/LifelistActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->orderls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/LifelistActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 54
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->temporderls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/LifelistActivity;Ldata/LifeAdapter;)V
    .locals 0

    .prologue
    .line 55
    iput-object p1, p0, Lcom/example/m6wmr/LifelistActivity;->orderAdapter:Ldata/LifeAdapter;

    return-void
.end method

.method static synthetic access$6(Lcom/example/m6wmr/LifelistActivity;)Lcom/wmr/Lstview/XListView;
    .locals 1

    .prologue
    .line 52
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/LifelistActivity;)Ldata/LifeAdapter;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->orderAdapter:Ldata/LifeAdapter;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/LifelistActivity;I)V
    .locals 0

    .prologue
    .line 51
    iput p1, p0, Lcom/example/m6wmr/LifelistActivity;->page:I

    return-void
.end method

.method static synthetic access$9(Lcom/example/m6wmr/LifelistActivity;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 46
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method private onLoad()V
    .locals 2

    .prologue
    .line 186
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopRefresh()V

    .line 187
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopLoadMore()V

    .line 188
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {p0}, Lcom/example/m6wmr/LifelistActivity;->GetTime()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setRefreshTime(Ljava/lang/String;)V

    .line 189
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/m6wmr/LifelistActivity;->is_loading:Z

    .line 190
    return-void
.end method


# virtual methods
.method public GetTime()Ljava/lang/String;
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SimpleDateFormat"
        }
    .end annotation

    .prologue
    .line 215
    new-instance v1, Ljava/text/SimpleDateFormat;

    .line 216
    const-string v2, "yyyy-MM-dd    hh:mm:ss"

    .line 215
    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 217
    .local v1, "sDateFormat":Ljava/text/SimpleDateFormat;
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    .line 218
    .local v0, "date":Ljava/lang/String;
    return-object v0
.end method

.method public getorderlist()Z
    .locals 1

    .prologue
    .line 264
    new-instance v0, Lcom/example/m6wmr/LifelistActivity$5;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/LifelistActivity$5;-><init>(Lcom/example/m6wmr/LifelistActivity;)V

    .line 329
    invoke-virtual {v0}, Lcom/example/m6wmr/LifelistActivity$5;->start()V

    .line 330
    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 61
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 62
    const v4, 0x7f03002b

    invoke-virtual {p0, v4}, Lcom/example/m6wmr/LifelistActivity;->setContentView(I)V

    .line 63
    invoke-virtual {p0}, Lcom/example/m6wmr/LifelistActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    check-cast v4, Lmyapp/MyApp;

    iput-object v4, p0, Lcom/example/m6wmr/LifelistActivity;->m:Lmyapp/MyApp;

    .line 64
    iget-object v4, p0, Lcom/example/m6wmr/LifelistActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v4}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 65
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 66
    iput-object p0, p0, Lcom/example/m6wmr/LifelistActivity;->mcontext:Landroid/content/Context;

    .line 67
    sput-object p0, Lcom/example/m6wmr/LifelistActivity;->OrderlistAct:Lcom/example/m6wmr/LifelistActivity;

    .line 70
    const v4, 0x7f0c0057

    invoke-virtual {p0, v4}, Lcom/example/m6wmr/LifelistActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Lcom/wmr/Lstview/XListView;

    iput-object v4, p0, Lcom/example/m6wmr/LifelistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    .line 71
    iget-object v4, p0, Lcom/example/m6wmr/LifelistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Lcom/wmr/Lstview/XListView;->setPullLoadEnable(Z)V

    .line 72
    iget-object v4, p0, Lcom/example/m6wmr/LifelistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v4, p0}, Lcom/wmr/Lstview/XListView;->setXListViewListener(Lcom/wmr/Lstview/XListView$IXListViewListener;)V

    .line 74
    const/high16 v4, 0x7f0c0000

    invoke-virtual {p0, v4}, Lcom/example/m6wmr/LifelistActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 75
    .local v3, "top":Landroid/widget/LinearLayout;
    iget-object v4, p0, Lcom/example/m6wmr/LifelistActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v4}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v4

    const-string v5, "1"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 76
    const v4, 0x7f070026

    invoke-virtual {v3, v4}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 79
    :cond_0
    const v4, 0x7f0c0001

    invoke-virtual {p0, v4}, Lcom/example/m6wmr/LifelistActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 80
    .local v1, "closebtn":Landroid/widget/ImageView;
    new-instance v4, Lcom/example/m6wmr/LifelistActivity$1;

    invoke-direct {v4, p0}, Lcom/example/m6wmr/LifelistActivity$1;-><init>(Lcom/example/m6wmr/LifelistActivity;)V

    invoke-virtual {v1, v4}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 87
    const v4, 0x7f0c0106

    invoke-virtual {p0, v4}, Lcom/example/m6wmr/LifelistActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 88
    .local v2, "tit":Landroid/widget/TextView;
    const-string v4, "\u751f\u6d3b\u52a9\u624b"

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 90
    new-instance v4, Lcom/example/m6wmr/LifelistActivity$2;

    invoke-direct {v4, p0}, Lcom/example/m6wmr/LifelistActivity$2;-><init>(Lcom/example/m6wmr/LifelistActivity;)V

    iput-object v4, p0, Lcom/example/m6wmr/LifelistActivity;->h:Landroid/os/Handler;

    .line 174
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    iput-object v4, p0, Lcom/example/m6wmr/LifelistActivity;->orderls:Ljava/util/List;

    .line 175
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    iput-object v4, p0, Lcom/example/m6wmr/LifelistActivity;->temporderls:Ljava/util/List;

    .line 176
    const-string v4, "MemberLoginActivity"

    const-string v5, "\u521d\u59cb\u5316\u6570\u636e"

    invoke-static {v4, v5}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 177
    new-instance v4, Landroid/os/Handler;

    invoke-direct {v4}, Landroid/os/Handler;-><init>()V

    iput-object v4, p0, Lcom/example/m6wmr/LifelistActivity;->mHandler:Landroid/os/Handler;

    .line 180
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 336
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 337
    invoke-virtual {p0}, Lcom/example/m6wmr/LifelistActivity;->finish()V

    .line 340
    :cond_0
    return v1
.end method

.method public onLoadMore()V
    .locals 4

    .prologue
    .line 224
    iget-boolean v0, p0, Lcom/example/m6wmr/LifelistActivity;->is_loading:Z

    if-nez v0, :cond_0

    .line 225
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/example/m6wmr/LifelistActivity;->is_loading:Z

    .line 226
    iget v0, p0, Lcom/example/m6wmr/LifelistActivity;->page:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/LifelistActivity;->page:I

    .line 228
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/LifelistActivity$4;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/LifelistActivity$4;-><init>(Lcom/example/m6wmr/LifelistActivity;)V

    .line 233
    const-wide/16 v2, 0x1f4

    .line 228
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 236
    :cond_0
    return-void
.end method

.method public onRefresh()V
    .locals 4

    .prologue
    const/4 v1, 0x1

    .line 195
    iget-boolean v0, p0, Lcom/example/m6wmr/LifelistActivity;->is_loading:Z

    if-nez v0, :cond_0

    .line 196
    iput-boolean v1, p0, Lcom/example/m6wmr/LifelistActivity;->is_loading:Z

    .line 197
    iput v1, p0, Lcom/example/m6wmr/LifelistActivity;->page:I

    .line 198
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setPullLoadEnable(Z)V

    .line 200
    iget-object v0, p0, Lcom/example/m6wmr/LifelistActivity;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/LifelistActivity$3;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/LifelistActivity$3;-><init>(Lcom/example/m6wmr/LifelistActivity;)V

    .line 208
    const-wide/16 v2, 0x1f4

    .line 200
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 210
    :cond_0
    return-void
.end method

.method protected onStart()V
    .locals 0

    .prologue
    .line 254
    invoke-virtual {p0}, Lcom/example/m6wmr/LifelistActivity;->getorderlist()Z

    .line 255
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 256
    return-void
.end method

.method public waitlogin()V
    .locals 2

    .prologue
    .line 246
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 247
    .local v0, "intent":Landroid/content/Intent;
    const-class v1, Lcom/example/m6wmr/LoginActivity;

    invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 248
    invoke-virtual {p0, v0}, Lcom/example/m6wmr/LifelistActivity;->startActivity(Landroid/content/Intent;)V

    .line 249
    return-void
.end method
